<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>上海宏邦知识产权代理有限公司</title>
    <link rel="Shortcut Icon" href="{{asset('admin_assets/img/HB.ico') }}"/>
    <link rel="Bookmark" href="{{asset('admin_assets/img/HB.ico') }}" />
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="{{asset('admin_assets/css/bootstrap.min.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('admin_assets/css/font-awesome/css/font-awesome.min.css')}}">
    <link rel="stylesheet" href="{{asset('admin_assets/css/AdminLTE.min.css')}}">
    <link rel="stylesheet" href="{{asset('admin_assets/css/skins/_all-skins.min.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('admin_assets/css/fileinput.min.css')}}">
    <link rel="stylesheet" href="{{asset('admin_assets/css/bootstrap-datetimepicker.min.css')}}">
    <link rel="stylesheet" href="{{asset('admin_assets/css/jquery.magnify.min.css')}}">
    <link rel="stylesheet" href="{{url('css/search.css')}}">
    <style>
        .admin-th{
            text-align: center;
        }
        .admin-td{
            text-align: center;
        }
        .ico_img {
            width: 85px;
            height: 80px;
            margin-top: -20px;
        }
    </style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper" style="background: white">
    <header class="main-header">
        <a href="#" class="logo" style="background-color: #303643">
      <span class="logo-mini" style="background-color: #303643">
        <img src="{{asset('admin_assets/img/minilogo.png')}}" style="width: 40px;height: 40px">
      </span>
      <span class="logo-lg" style="background-color: #303643">
        <img src="{{asset('admin_assets/img/iplogo.png')}}" style="width: 150px;height: 35px">
      </span>
        </a>
        <nav class="navbar navbar-static-top" style="background-color: #303643">
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <img src="{{asset('admin_assets/img/minilogo.png')}}" class="user-image"
                                 alt="">
                            <span class="hidden-xs">用户管理员</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header" style="background: #222D32">
                                <div style="margin-left: 35%;width: 80px;height: 80px;border-radius: 50%;">
                                    <img src="{{asset('admin_assets/img/minilogo.png')}}" style="width: 80px;height: 80px">
                                </div>
                                <p style="margin-top: 10%">用户审核后台</p>
                            </li>
                            <li class="user-footer">
                                <div class="pull-right">
                                    <a href="{{url('Admin/admin-examine/adminExamineLoginOut')}}" class="btn btn-default btn-flat">退出登录</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <div class="content-wrapper" style="background-color: white;width: 100%;margin-left: 0">
        <section id="list" class="content">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="box box-info"
                         style="height: 60px;padding-top: 0px;margin-top: 0px;border-top: 0px;border-bottom: solid 1px #009aff;">
                        <div class="box-body" style="">
                            <div class="row">
                                <div class="col-lg-2 col-md-2 col-sm-12 col-xs-12" style="margin-top: 1%">
                                    <a href="#" title="返回首页" style="float: left"><i class="fa fa-home fa-2x"
                                                                                    style="width: 100%;color: #009aff">
                                        </i></a>
                                    <a href="{{url('Admin/admin-examine/adminExamineHome')}}"><span
                                                style="font-size: 20px;float: left;color: #009aff">&nbsp;首页</span></a>
                                    <div class="clear"></div>
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-12 col-xs-12  col-lg-offset-8 col-md-offset-8">
                                    <button type="submit" class="fa fa-search fa-lg"></button>
                                    <input type="search" class="search" id="search-input" name="search" style="margin-top: 20px">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            @include('public/alert')
            <div class="row">
                <div class="col-lg-3 col-md-4 col-sm-6 col-xs-6">
                    <div class="small-box bg-aqua">
                        <div class="inner">
                            <h3>{{$data['userCount']}}</h3>
                            <p>用户总数</p>
                        </div>
                        <div class="icon">
                            <img class="ico_img" src="{{asset('admin_assets/img/total_icon.png')}}">
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-4 col-sm-6 col-xs-6">
                    <div class="small-box bg-yellow">
                        <div class="inner">
                            <h3>{{$data['dealingUserCount']}}</h3>
                            <p>待审核数</p>
                        </div>
                        <div class="icon">
                            <img class="ico_img" src="{{asset('admin_assets/img/total_icon.png')}}">
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-4 col-sm-6 col-xs-6">
                    <div class="small-box bg-green">
                        <div class="inner">
                            <h3>{{$data['dealedUserCount']}}</h3>
                            <p>已通过数</p>
                        </div>
                        <div class="icon">
                            <img class="ico_img" src="{{asset('admin_assets/img/total_icon.png')}}">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="table-responsive">
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th class="admin-th">#</th>
                                <th class="admin-th">用户名</th>
                                <th class="admin-th">类型</th>
                                <th class="admin-th">状态</th>
                                <th class="admin-th">公司</th>
                                <th class="admin-th">证件号码</th>
                                <th class="admin-th">证件复印件</th>
                                <th class="admin-th">联系电话</th>
                                <th class="admin-th">用户注册时间</th>
                                <th class="admin-th">操作</th>
                            </tr>
                            </thead>
                            <tbody class="list">
                            @if($data['user']->isEmpty())
                                <tr>
                                    <td colspan="7"><h3 style="text-align: center;color: #676767">暂无数据</h3></td>
                                </tr>
                            @else
                                @foreach($data['user'] as $k =>$v)
                                <tr>
                                    <td class="admin-td">{{$k+1}}</td>
                                    <td class="admin-td real_name">{{$v['real_name']}}</td>
                                    <td class="admin-td type">
                                        @if($v['type']==0)
                                        个体
                                        @elseif($v['type']==1)
                                        企业
                                        @endif
                                    </td>
                                    <td class="admin-td review">
                                        @if($v['review']==0)
                                            审核中
                                        @elseif($v['review']==1)
                                            通过
                                        @elseif($v['review']==2)
                                            未通过
                                        @endif
                                    </td>
                                    <td class="admin-td certificate_company">{{$v['company']}}</td>
                                    <td class="admin-td certificate_number">{{$v['certificate_number']}}</td>

                                    <td class="admin-td">
                                        @if($v['certificate_photo']==null)
                                        暂无证件资料
                                        @else
                                        <a href="{{asset($v['certificate_photo'])}}" data-magnify="gallery" data-caption="证件复印件">
                                        点击预览
                                        </a>
                                        @endif
                                    </td>
                                    <td class="admin-td phone">{{$v['phone']}}</td>
                                    <td class="admin-td created_at">{{date("Y-m-d",strtotime($v['created_at']))}}</td>
                                    <td class="admin-td">
                                        @if($v['review']==0)
                                            <a href="{{url('Admin/admin-examine/adminExamineDel',['id'=>$v['id']])}}">删除</a>
                                            <a href="{{url('Admin/admin-examine/adminExamineReview',['id'=>$v['id'],'type'=>$v['review']])}}">审核通过</a>
                                        @elseif($v['review']==1)
                                            <a href="{{url('Admin/admin-examine/adminExamineDel',['id'=>$v['id']])}}">删除</a>
                                        @elseif($v['review']==2)
                                            <a href="{{url('Admin/admin-examine/adminExamineReview',['id'=>$v['id'],'type'=>$v['review']])}}">审核通过</a>
                                            <a href="{{url('Admin/admin-examine/adminExamineDel',['id'=>$v['id']])}}">删除</a>
                                        @endif
                                    </td>
                                </tr>
                                @endforeach
                            @endif
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <footer class="main-footer" style="background-color: #eaeaea;text-align: center; font-size: 0.8vw;;margin-left: 0">
        Copyright &copy; 2018 <a href="http://www.hongbung.com" target="_blank">上海宏邦知识产权代理有限公司</a>
    </footer>
</div>
<script src="{{asset('admin_assets/js/jquery.min.js')}}"></script>
<script src="{{asset('admin_assets/js/bootstrap.min.js')}}"></script>
<script src="{{asset('admin_assets/js/adminlte.min.js')}}"></script>
<script type="text/javascript" src="{{asset('admin_assets/js/bootstrap-datetimepicker.js')}}"></script>
<script type="text/javascript" src="{{asset('admin_assets/js/jquery.magnify.min.js')}}"></script>
<script src="{{asset('js/ip.js')}}"></script>
<script src="{{asset('js/list.min.js')}}"></script>
<script>
    var options = {
        valueNames: ['certificate_company','real_name','type','review','certificate_number','phone','created_at']
    };
    var List = new List('list', options);
</script>
<!--底部引入js-->
</body>
</html>
